<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
</head>
<body>
      <script>
         var arr  = ["10","11","12","13","14","15"]
         //取出第一个元字符串
         var str = arr[0];
         var seperator  = "|";
         for(var i=1;i<arr.length;i++)
         {
             //拼接
             str+=seperator+arr[0]; 
         }
         console.log(str)


      </script>
</body>
</html>